#!/usr/bin/env python

from os3.dbm.dbmanager import DBManager
from os3.session import SessionManager

dbm = DBManager ( DBManager.DBM_TYPE_MYSQL )
dbm.set_prefix ( 'wa' )
dbm.connect ( db = 'aspes', user = 'root', host = 'localhost' )

sm = SessionManager ( 'db', dbm, 'session_manager' )

sm.install()

s = sm.new ( '0001wi4gn20fdp98sre3v0242ea' )
s.set ( "pippo", "pluto" )
print s.get ( 'pippo' )
print s.get ( 'pizza' )
s.save()
print s.get_id()


